package vip.xiaonuo.modular.cms.node;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import vip.xiaonuo.core.pojo.base.node.BaseTreeNode;

import java.util.List;

/**
 * @ProjectName: snowy_layui_cms
 * @Package: vip.xiaonuo.modular.cms.node
 * @ClassName: FileTreeNode
 * @Author: liubaihan
 * @Description: 文件树节点对象
 * @Date: 2022/9/13 10:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FileTreeNode implements BaseTreeNode {

    private Long id;

    private Long parentId;

    private String parentPath;

    private String path;

    private String fileType;

    private boolean isFolder;

    private String title;

    private Boolean spread;

    private List children;


    @Override
    public Long getPid() {
        return this.parentId;
    }

    /**
     * 子节点
     */
    @Override
    public void setChildren(List children) {
        this.children = children;
    }
}
